<?php echo $this->Form->create('Paginate', array('id' => 'paginate', 'url' => $this->request->here(false), 'type' => 'post', 'inputDefaults' => array('label' => false))); ?>                           
<div id="content-header">
<h1><?php echo __d('system','Action Management');?></h1>
</div>
<div id="breadcrumb">
    <a href="<?php echo $this->Html->url('/admin/')?>" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> <?php echo __d('system','Home');?></a>
    <a href="#" class="current"><?php echo __d('system','List Action');?></a>
</div>
<div class="container-fluid">
<div class="row-fluid">
    <div class="span12">    
                <?php
            echo $this->element('toolbar');
            ?>    
                                        
        <div class="widget-box">
            <div class="widget-title">
                <span class="icon">
                    <i class="icon-th"></i>
                </span>
                <h5><?php echo __d('system','List of Action');?></h5>
            </div>
            <div class="widget-content widget-content-two">
                <div class="wd-select">
                    <div class="control-group">
                        <div class="controls wd-farming">
                            <select>
                                <option /><?php echo __d('system','Delete');?>
                            </select>
                            <button class="btn"><?php echo __d('system','Apply');?></button>
                        </div>
                    </div>
                </div>
                <table class="table table-bordered data-table table-striped with-check wd-hover-btn">
                    <thead>
                        <tr>
                        <th><input type="checkbox" id="title-table-checkbox" name="title-table-checkbox" /></th>
                        <th> <?php echo  __d('system', 'Action'); ?></th>
                        <th> <?php echo  __d('system', 'Descriptions'); ?></th>                                                
                        <th class="wd-fix-width-2"><?php echo  __d('system', 'Action'); ?></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                    
                        $defaultLanguage = Router::defaultLanguage();
                      $_queries = array('continue' => $this->request->here(false));
                        ?> 
                            <?php foreach ($action as $actions) : ?>                                            
                        <tr>
                            <td><input type="checkbox" name="data[Paginate][chk_node_type][]" value="<?php echo $actions['Action']['id'];?>"/></td>            
                           <td>
                                <a href="<?php echo $this->Html->url(array('plugin'=>'node','controller' => 'node', 'action' => 'edit_config_action',$actions['Action']['id'], '?' => $_queries));?>"> <?php echo $actions['Action']['action']; ?></a>
                           </td>                                                                                                      
                           <td>
                                <?php echo $actions['Action']['descriptions']; ?>
                           </td>                            
                            <td>
                            <ul class="wd-link-control">
                            <li><a href="<?php echo $this->Html->url(array('plugin'=>'node','controller' => 'node', 'action' => 'edit_config_action',$actions['Action']['id'], '?' => $_queries));?>" class="btn btn-mini"><i class="icon-edit"></i> <?php echo __d('system','Edit');?></a></li>
                            <li><a href="#<?php echo $actions['Action']['id']?>" data-toggle="modal" class="btn btn-mini"><i class="icon-remove"></i> <?php echo __d('system','Delete');?></a></li>                            
                           </ul>
                            </td>
                        </tr>
                <div id="myAlert" class="modal hide">
                    <div class="modal-header">
                        <button data-dismiss="modal" class="close" type="button">×</button>
                        <h3><?php echo __d('system','Alert');?></h3>
                    </div>
                    <div class="modal-body">
                        <p><?php echo __d('system','Are you sure delete');?> “<?php echo $node['Node']['title']?>”?</p>
                    </div>
                    <div class="modal-footer">
                        <a data-dismiss="modal" class="btn" href="#"><?php echo __d('system','Cancel');?></a>
                        <?php echo $this->Html->link('Delete', array('plugin'=>'node','controller' => 'node','action' => 'delete', '?' => array_merge($_queries, array('keys' => array($node['Node']['id'])))), array('title' => false, 'class' => 'btn btn-danger','data-dismiss='=>'modal')); ?>                        
                    </div>
                </div>                                                       
           <?php endforeach?>                        
                    </tbody>
      <?php foreach ($action as $actions) : ?> 
                 <div id="<?php echo $actions['Action']['id']?>" class="modal hide">
                    <div class="modal-header">
                        <button data-dismiss="modal" class="close" type="button">×</button>
                        <h3><?php echo __d('system','Alert modal');?></h3>
                    </div>
                    <div class="modal-body">
                        <p><?php echo __d('system','Are you sure delete');?> “<?php echo $actions['Action']['action']?>”?</p>
                    </div>
                    <div class="modal-footer">
                        <a data-dismiss="modal" class="btn" href="#"><?php echo __d('system','Cancel');?></a>
                        <?php echo $this->Html->link('Delete', array('plugin'=>'node','controller' => 'node','action' => 'delete_action', '?' => array_merge($_queries, array('keys' => array($actions['Action']['id'])))), array('title' => false, 'class' => 'btn btn-danger','data-dismiss='=>'modal')); ?>                        
                    </div>
                </div>  
    <?php endforeach?>                    
                </table>

                <div class="wd-select">
                
                    <div class="control-group">
                        <div class="controls wd-farming">
                            <select>
                                <option /><?php echo __d('system','Delete');?>
                            </select>
                            <button class="btn"><?php echo __d('system','Apply');?></button>
                        </div>
                    </div>
                </div>                                
            </div>
        </div>
    </div>    
</div>
<?php         
echo $this->Form->hidden('task', array('id' => 'task', 'value' => ''));
echo $this->Form->end();
?>